{% extends "base.html" %}
{% block title %} {{entry.title}} - {{blog.title}} {% endblock %}
{% block content%}

<div id="content" class="group">
{% if entry %}

<h2 id="post-{{ entry.key.id }}">{{entry.title}}</h2>
<p class="comments"><span class="entrymeta">{% if entry.allow_comment %}<a href="/{{entry.link}}#comments">with {{entry.commentcount}} comments</a>and {% else %}Comments are closed. {% endif %}{{entry.readcount}} views</span></p>

<div class="main">
{{ entry.content }}
</div>

<div class="meta group">
<div class="signature">
    <p>Written by {{blog.author}} <span class="edit">{%if self.is_admin%}<a href="{{entry.edit_url}}">Edit</a>{%endif%}</span></p>
    <p>{{entry.date|datetz:"F jS, Y"}}</p>
</div>
<div class="tags">
    <p>{% if entry.categories %}Posted in {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}{% endif %}</p>    <p>{% if entry.strtags %}Tags: {%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a> {%endfor%}{%endif%}</p>
</div>
</div>

<div class="navigation group">
    <div class="alignleft">{%for next in entry.next%}
	<a href="/{{next.link}}" title="{{next.title}}">&laquo; {{next.title}}</a>
{%endfor%}
</div>
    <div class="alignright">{%for prev in entry.prev%}
	<a href="/{{prev.link}}" title="{{prev.title}}">{{prev.title}} &raquo;</a>
{%endfor%}
</div>
</div>

{% include "comments.html" %}

{% else %}
<div class="warning">
	<p>Sorry, but you are looking for something that isn't here.</p>
</div>
{% endif %}
</div>

{% include "sidebar.html" %}
{% endblock %}